import * as actionsName from './actionsName'
import * as services from './services'

// 创建reducer
 const reducer = (state, action) => {
    switch (action.type) {
        case actionsName.ADD_ACTION:
            return services.addShop(state, action)

        case actionsName.SUB_ACTION:
            return services.subShop(state, action)

        default:
            return state
    }
}

export default reducer
